package cn.itcast.dao;

import cn.itcast.domain.DingDan;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.entity.Example;

import java.util.List;
import java.util.Map;

/**
 * Created by leiylong on 2020/4/21
 */
@Repository
public interface DingDanDao extends Mapper<DingDan> {
    List<Map> findDate(String date);

    //   @Select("select * from dingdan")
    List<DingDan> findAll();

    DingDan findById(String orderId);

    void add(DingDan dingDan);

    @Select("select * from dingdan")
    Page<DingDan> findPage();

    void update(DingDan dingDan);
//    @Select("select * from dingdan")
//    List<DingDan> selectByExample(Example example);
}
